package org.sith.taskrunner.ejb;

import org.sith.taskrunner.api.toolkit.TaskToolkit;


public class ToolkitClassCreator {

    public static Class<? extends  TaskToolkit> create(String className) {
        try {
            return (Class<? extends TaskToolkit>) Class.forName(className);
        } catch (ClassCastException e) {
            throw new IllegalStateException(e);
        }catch (ClassNotFoundException e) {
            throw new IllegalStateException(e);
        }
    }

}
